﻿@{ Layout = null; }

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript">
        function Save() {
            var saveUrl = "/DataRegionEdit/SaveDoc";
            pageofficectrl.SaveFilePage = saveUrl;
            pageofficectrl.WebSave();
        }

        function ShowDefineDataRegions() {
            var drDefinedJson = pageofficectrl.word.DataRegionsDefinedAsJson;
            pageofficectrl.ShowHtmlModelessDialog("DataRegionDlg.htm", drDefinedJson, "left=300px;top=390px;width=610px;height=410px;frame:no;");
        }

        function OnPageOfficeCtrlInit() {
            pageofficectrl.AddCustomToolButton("保存", "Save", 1);
            pageofficectrl.AddCustomToolButton("定义数据区域", "ShowDefineDataRegions", 10);
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div style="width:auto;height:98vh;">
            @Html.Raw(ViewBag.poCtrl)
        </div>
    </form>
</body>
</html>
